extends Area2D

@onready var animation = $AnimationPlayer

func _ready() -> void:
	animation.play("rotation")

func _on_body_entered(player: Node2D) -> void:
	player.collect_coin()
	queue_free()
